package sd.czw.com.mmgapp.model.shopcart;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;
import okhttp3.Response;


/**
 * Created by czw
 * desc 描述：
 * on 2017/7/21.
 */
public abstract class ShopCartCallback extends Callback<ShopCartModel> {

    @Override
    public ShopCartModel parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        ShopCartModel userInfo = new Gson().fromJson(string, ShopCartModel.class);
        return userInfo;
    }
}